class ChangeCentrosColumnsSize < ActiveRecord::Migration
  def self.up
    change_column :centros, :nombre_comercial, :string, :limit => 60, :null => false
    change_column :centros, :razon_social, :string, :limit => 90, :null => false
    change_column :centros, :calle, :string, :limit => 75, :null => false
    change_column :centros, :telefono_extension, :string, :limit => 10, :default => nil
    change_column :centros, :fax_extension, :string, :limit => 10, :default => nil
  end

  def self.down
    change_column :centros, :fax_extension, :string, :limit => 4
    change_column :centros, :telefono_extension, :string, :limit => 5
    change_column :centros, :calle, :string, :limit => 40, :null => false
    change_column :centros, :nombre_comercial, :string, :limit => 40, :null => false
    change_column :centros, :razon_social, :string, :limit => 40, :null => false
  end
end
